Skip to content

Make start.sh CI-agnostic and document GitHub Actions usage#4

Open
CodeYogiCo wants to merge 1 commit into
masterfrom
ci-agnostic-start-and-gh-actions-docs
Open

Make start.sh CI-agnostic and document GitHub Actions usage#4
CodeYogiCo wants to merge 1 commit into
masterfrom
ci-agnostic-start-and-gh-actions-docs

Conversation

@CodeYogiCo
Copy link
Copy Markdown
Owner

What

  • scripts/start.sh — now CI-agnostic (Vela still works via fallbacks):

    • .netrc git auth is created only when netrc vars are set; reads generic GIT_NETRC_* with VELA_NETRC_* fallback.
    • Target branch from PARAMETER_TARGET_BRANCH, falling back to VELA_PULL_REQUEST_TARGET; clear error if neither is set.
    • Generic, overridable git identity instead of hardcoded vela, plus safe.directory to avoid container "dubious ownership" failures.
    • set -x kept after the secret block so the netrc password is never traced.
  • README — new GitHub Actions Usage section: a Go/cobertura workflow, an environment-variable reference table, GitHub Enterprise base-URL guidance, the fork-PR caveat, and a table documenting the generic container entrypoint. Intro now notes Vela + GitHub Actions + any container CI.

Notes

  • No functional change to the Go plugin; existing Vela pipelines keep working via the fallbacks.

Document a GitHub Actions workflow and the plugin's environment variables, and
rework scripts/start.sh to run under any CI (generic vars with Vela fallbacks).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant